package com.fy.service.mapper;

import com.fy.order.dto.ObjectOrderDto;
import com.fy.service.entity.FindOrderEntity;
import com.fy.service.entity.ObjectOrderEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductOrderMapper {
    //添加object_order实物订单信息
    ObjectOrderDto addProductOrder(ObjectOrderEntity objectOrderEntity);

    //通过id查看object_order订单
    ObjectOrderDto objectOrderFindById(int objectOrderId);

    //查看全部object_order订单
    List<ObjectOrderDto> objectOrderFindAll();

    //查询订单条件查
    ObjectOrderDto findObjectOrder(FindOrderEntity findOrderEntity);

    //修改object_order订单信息
    Boolean updateObjectOrder(ObjectOrderEntity objectOrderEntity);

    //修改object_order订单状态
    ObjectOrderDto updateObjectOrderState(int objectOrderId, int orderState);

    //删除object_order订单
    int deleteObjectOrderState(int objectOrderId);

    //支付
    ObjectOrderDto payObjectOrderState(int objectOrderId);

    //发货
    ObjectOrderDto deliveryUpdateObjectOrder(int objectOrderId, int orderDeliverNumber);
}
